package com.alibaba.dubbo.demo;

import java.util.List;

import com.alibaba.dubbo.demo.bean.SysRole;
import com.alibaba.dubbo.demo.bean.PageBean;

public interface SysRoleInterface {

	/**
	 * 获取所有角色信息
	 */
	public PageBean queryAllSysRole(PageBean pageBean,String rolecode,String rolename);
	public List<SysRole> queryAllSysRoleList(String rolecode,String rolename);
	
	//获取SysRole
	public SysRole queryOneSysRole(String rolecode);
	public SysRole queryOneSysRole(int roleid);
	
	//保存SysRole
	public boolean saveSysRole(SysRole sysRole);
	
	//更新SysRole
	public boolean updateSysRole(SysRole sysRole);
	
	//删除SysRole
	public boolean deleteSysRole(int roleid);
	//设置是否可用
	public boolean updateSysRoleFlag(int roleid,int valid);
}
